package com.tanovo.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class TokenRequest {
    @JsonIgnore
    private String grantType = "password";
    @JsonIgnore
    private String clientId;
    @ApiModelProperty(name="登录账号",notes = "登录账号")
    private String loginName;
    @ApiModelProperty(name="登录邮箱",notes = "登录邮箱")
    private String email;
    @ApiModelProperty(name="电话号码",notes = "11位的电话")
    private String phone;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @JsonIgnore
    private Integer userId;
    @ApiModelProperty("公司id")
    private Integer companyId;

}
